//
//  DXHomeViewController.swift
//  weiBoOfSwift
//
//  Created by simon on 15/12/5.
//  Copyright © 2015年 simon. All rights reserved.
//

import UIKit

class DXMessageViewController: DXBaseTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        isLogin ? setUpLoginView() : setUpOutView()

    }
    
    @objc private func setUpLoginView(){
        title = "消息"
        navigationItem.leftBarButtonItem = UIBarButtonItem.customItem(title: "发现群", target: self, action: "discoverGroup")

    }
    
    @objc private func setUpOutView(){

       visitView!.changSubViews(introLabelString: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知", iconName: "visitordiscover_image_message")
        
    }
    
    
    
    // MARK: - discoverGroup点击事件
    @objc private func discoverGroup(){
    navigationController?.pushViewController(DXTempViewController(), animated: true)
    }
   

}
